import Vue from 'vue'
import Router from 'vue-router'
const demo = r => require.ensure([], () => r(require('../components/web/demo.vue')), 'demo')
const HelloWorld = r => require.ensure([], () => r(require('../components/phone/HelloWorld.vue')), 'HelloWorld')

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/demo',
      name: 'demo',
      component: demo
    },
    {
      path: '/hello',
      name: 'hello',
      component: HelloWorld
    }
  ]
})
